// src/lib.rs
#[derive(Debug, PartialEq, Eq)]
pub struct RequestLine {
    pub method: String,
    pub path: String,
    pub version: String,
}

pub fn parse_request_line(_line: &str) -> RequestLine {
    unimplemented!()
}

#[cfg(test)]
mod tests {
    use super::*;

    #[test]
    fn parse_request_line_extracts_method_path_version() {
        let line = "GET /hello HTTP/1.1";
        let parsed = parse_request_line(line);

        assert_eq!(
            parsed,
            RequestLine {
                method: "GET".into(),
                path: "/hello".into(),
                version: "HTTP/1.1".into()
            }
        );
    }
}